home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / DJSRC111.ZIP / go32 / proginfo.h < prev    next >
C/C++ Source or Header  |  1993-11-14  |  1KB  |  46 lines

  1. /* This is file PROGINFO.H */
  2. /*
  3. ** Copyright (C) 1993 DJ Delorie, 24 Kirsten Ave, Rochester NH 03867-2954
  4. **
  5. ** This file is distributed under the terms listed in the document
  6. ** "copying.dj", available from DJ Delorie at the address above.
  7. ** A copy of "copying.dj" should accompany this file; if not, a copy
  8. ** should be available from where this file was obtained.  This file
  9. ** may not be distributed without a verbatim copy of "copying.dj".
  10. **
  11. ** This file is distributed WITHOUT ANY WARRANTY; without even the implied
  12. ** warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  13. */
  14.  
  15. #ifndef _PROGINFO_H_
  16. #define _PROGINFO_H_
  17.  
  18. /* This must match include/go32.h */
  19. /* This MUST be a multiple of 4 bytes in size */
  20.  
  21. typedef struct {
  22.   word32 size_of_this_structure_in_bytes;
  23.   word32 linear_address_of_primary_screen;
  24.   word32 linear_address_of_secondary_screen;
  25.   word32 linear_address_of_transfer_buffer;
  26.   word32 size_of_transfer_buffer;
  27.   word32 pid;
  28.   word8  master_interrupt_controller_base;
  29.   word8  slave_interrupt_controller_base;
  30.   word16 selector_for_linear_memory;
  31.   word32 linear_address_of_stub_info_structure;
  32.   word32 linear_address_of_original_psp;
  33.   word16 run_mode;
  34.   word16 run_mode_info;
  35. } PROGINFO;
  36.  
  37. #define _GO32_RUN_MODE_UNDEF    0
  38. #define _GO32_RUN_MODE_RAW    1
  39. #define _GO32_RUN_MODE_XMS    2
  40. #define _GO32_RUN_MODE_VCPI    3
  41. #define _GO32_RUN_MODE_DPMI    4
  42.  
  43. extern PROGINFO prog_info;
  44.  
  45. #endif
  46.